<?php # Script 16.5 - index.php
// This is the main page for the site.

// Include the configuration file:
require_once ('includes/config.inc.php'); 

// Set the page title and include the HTML header:
$page_title = 'Welcome to this Site!';
include ('includes/header.html');

// Welcome the user (by name if they are logged in):
echo '<h1>Welcome';
if (isset($_SESSION['first_name'])) {
	echo ", {$_SESSION['first_name']}! </h1>";
?>
<form action="form1.php">
	<input type="submit" value="Start New Campaign!">
</form>

	

	
<?php
}
else
{

?>
<p>Please <a href="register.php">register</a> or <a href="login.php">log in</a> to view, modify, or create your own marketing campaign!</p>

<?php // Include the HTML footer file:
}
include ('includes/footer.html');
?>
